//import { defineConfig } from "webpack-common";
//import { defineConfig } from "./webpack-common";
//const { defineConfig } = require("webpack-common");
const { defineConfig } = require("../dist/index.cjs");
const { resolve, posix } = require("path");

module.exports = defineConfig({
  devServer: {
    open: true
  },
})
//module.exports = defineConfig(({ mode, command })=> {
//  //console.log(mode)
//  //console.log(command)
//  return {
//    //outputDir: "dist1",
//    //assetsDir: "sources",
//    publicPath: "/child/",
//    devServer: {
//      port: 3000,
//      open: true
//    }
//  }
//})

//export default defineConfig(({ mode, command })=>{
//  console.log(mode)
//  console.log(command)
//  return {
//    devServer: {
//      port: 3000,
//    }
//  }
//})